package com.dora.basic.basic.lambda;

import java.util.*;

/**
 * 条件筛选器lambda示例
 *
 * @author hanchen
 * @date 2025/02/06
 */
public class LambdaExampleForConditionFilter {
    public static void main(String[] args) {
        List<String> words = Arrays.asList("Java", "Python", "C", "JavaScript");

        // 使用 Lambda 表达式过滤
        words.stream()
            .filter(word -> word.length() > 3)
            .forEach(System.out::println);
    }
}
